package com.anlu.base;


public interface AsyncCallback <T>{

    /**
     *  Complete handler which is executed when async task is completed.
     * @param result
     */
    void onComplete(T result);

    /**
     * Error handler which is executed when async task fails execution.
     *
     * @param ex exception which was thrown during async task execution(non-null)
     */
    void onError(Throwable ex);

}
